package com.universe.titan.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;


/**
 *  * @Author : linmaobo
 *  * @create 2022/12/8
 * 添加配置，用于扫描贴了ServerEndpoint的注解，将其解析为类似request'Mapping的作用
 */
@Configuration
public class WebSocketConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}